package com.ft.turorial.security.user.controller;

import com.ftqh.core.web.controller.AbstractController;
import com.ftqh.security.user.domain.User;
import com.ftqh.security.user.service.UserServiceImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2016/12/27
 * \* Time: 15:05
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */
@RestController
@RequestMapping("user")
public class UserController extends AbstractController<User, UserServiceImpl, Integer> {

    @Override
    protected String getPagePrex() {
        return "";
    }

    @Override
    protected User createDomain() {
        return new User();
    }

    @Override
    protected void setAttributes(ModelAndView model, User domain) {

    }
}
